package cn.edu.xmu.javaee.productdemojpa.mapper.join;

import cn.edu.xmu.javaee.productdemojpa.mapper.join.po.JoinProductPo;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface JoinProductPoMapper extends JpaRepository<JoinProductPo, Long> {
    List<JoinProductPo> findByName(String name, Pageable pageable);
    List<JoinProductPo> findByShopIdAndName(Long shopId, String name, Pageable pageable);
}
